Skip to content

fix: improve error messages to include part number and descriptive context - #393

Open
dukunline-cyber wants to merge 1 commit into
tscircuit:mainfrom
dukunline-cyber:fix/improve-component-not-found-error
Open

fix: improve error messages to include part number and descriptive context#393
dukunline-cyber wants to merge 1 commit into
tscircuit:mainfrom
dukunline-cyber:fix/improve-component-not-found-error

Conversation

@dukunline-cyber

Copy link
Copy Markdown

Fixes #288

Changes

  1. All error messages in fetchEasyEDAComponent now include the JLCPCB part number for easier debugging
  2. When a component is not found in EasyEDA database, the error message now explains that the part may exist on JLCPCB but lacks EasyEDA footprint data
  3. Added test for C9900037709 confirming the descriptive error is thrown

Before

Error: Component not found

After

Error: Component with JLCPCB part number C9900037709 not found in EasyEDA database. This part may exist on JLCPCB but lacks EasyEDA footprint data.

Testing

bun test tests/fetch-tests/c9900037709.test.ts passes

…ntext

- Include JLCPCB part number in all error messages
- Add descriptive message when component exists on JLCPCB but not in EasyEDA database
- Add test for C9900037709 (part not found in EasyEDA)

Closes tscircuit#288
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[C9900037709] Failed to import from JLCPCB

1 participant